package com.google.code.jholidays.io;

public class XmlReaderHelper {
    public static String getWellFormedXml() {
	return "<?xml version=\"1.0\" encoding=\"utf-8\"?><descriptors xmlns=\"http://www.example.org/DescriptorCollectionXml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.example.org/DescriptorCollectionXml\">"
		+ "<descriptor><id>1</id>"
		+ "<name>first</name>"
		+ "<description>none</description>"
		+ "<expression>01.01</expression></descriptor>"
		+ "<descriptor><id>2</id>"
		+ "<name>second</name>"
		+ "<description>none</description>"
		+ "<expression>02.01</expression></descriptor>"
		+ "<descriptor><id>3</id>"
		+ "<name>third</name>"
		+ "<description>none</description>"
		+ "<expression>03.01</expression></descriptor>"
		+ "</descriptors>";
    }

    public static String getMissingNameElementXml() {
	return "<?xml version=\"1.0\" encoding=\"utf-8\"?><descriptors xmlns=\"http://www.example.org/DescriptorCollectionXml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.example.org/DescriptorCollectionXml\">"
		+ "<descriptor><id>1</id>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>1.1</expression></descriptor>"
		+ "<descriptor><id>2</id>"
		+ "<name>second</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>2.1</expression></descriptor>"
		+ "<descriptor><id>3</id>"
		+ "<name>third</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>3.1</expression></descriptor>"

		+ "</descriptors>";
    }

    public static String getMissingDescriptionElementXml() {
	return "<?xml version=\"1.0\" encoding=\"utf-8\"?><descriptors xmlns=\"http://www.example.org/DescriptorCollectionXml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.example.org/DescriptorCollectionXml\">"
		+ "<descriptor><id>1</id>"
		+ "<name>first</name>"
		+ "<parent_id></parent_id>"
		+ "<expression>1.1</expression></descriptor>"
		+ "<descriptor><id>2</id>"
		+ "<name>second</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>2.1</expression></descriptor>"
		+ "<descriptor><id>3</id>"
		+ "<name>third</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>3.1</expression></descriptor>"

		+ "</descriptors>";
    }

    public static String getMissingParentIDElementXml() {
	return "<?xml version=\"1.0\" encoding=\"utf-8\"?><descriptors xmlns=\"http://www.example.org/DescriptorCollectionXml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.example.org/DescriptorCollectionXml\">"
		+ "<descriptor><id>1</id>"
		+ "<name>first</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>1.1</expression></descriptor>"
		+ "<descriptor><id>2</id>"
		+ "<name>second</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>2.1</expression></descriptor>"
		+ "<descriptor><id>3</id>"
		+ "<name>third</name>"
		+ "<description>none</description>"
		+ "<expression>3.1</expression></descriptor>"

		+ "</descriptors>";
    }

    public static String getMissingExpressionElementXml() {
	return "<?xml version=\"1.0\" encoding=\"utf-8\"?><descriptors xmlns=\"http://www.example.org/DescriptorCollectionXml\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.example.org/DescriptorCollectionXml\">"
		+ "<descriptor><id>1</id>"
		+ "<name>first</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "</descriptor>"
		+ "<descriptor><id>2</id>"
		+ "<name>second</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>2.1</expression></descriptor>"
		+ "<descriptor><id>3</id>"
		+ "<name>third</name>"
		+ "<description>none</description>"
		+ "<parent_id></parent_id>"
		+ "<expression>3.1</expression></descriptor>"

		+ "</descriptors>";
    }

}
